﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClassLibrary
{
    public class JournalCollection
    {
        private List<Journal> journalList = new List<Journal>();
        public Journal Createjournal(int cpr, string injuryType, string description, DateTime date)
        {
            Journal NewJournal = new Journal(cpr, injuryType, description, date);
            journalList.Add(NewJournal);
            return NewJournal;
        }

        public List<Journal> FindAllJournals()
        {
            List<Journal> newList = new List<Journal>();
            foreach (Journal Jour in journalList)
            {
                newList.Add(Jour);
            }
            return newList;
        }



    }
}
